-- GENERATED SPELL FOR [Bog Lord] --


function spell0_18127(pUnit, Event) --@Boglord Bash,n/a--
pUnit:FullCastSpellOnTarget(32077,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18127', 564, 1)
end

function spell1_18127(pUnit, Event) --@Unstable Mushroom Primer,n/a--
pUnit:FullCastSpellOnTarget(35273,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18127', 572, 1)
end

function Sorts_18127(pUnit, Event)
local choix_sorts_18127 = math.random(0, 1)
if choix_sorts_18127 == 0 then
pUnit:RegisterEvent('spell0_18127', 1, 1)
end
if choix_sorts_18127 == 1 then
pUnit:RegisterEvent('spell1_18127', 1, 1)
end
end

function mob18127_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18127', math.random(1500, 3000), 1)
end

function mob18127_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18127_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18127_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18127, 1, 'mob18127_Action')
RegisterUnitEvent(18127, 2, 'mob18127_Leave')
RegisterUnitEvent(18127, 3, 'mob18127_Kill')
RegisterUnitEvent(18127, 4, 'mob18127_Die')
